﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Protocol.OUSProtocol.Model
{
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct SStatus
    {
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
        public short[] temp_r;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
        public ushort[] humi_r;
        public ushort nh3_r;
        public ushort co2_r;
        public UInt32 wind_r;

        public ushort temp_avg;
        public ushort temp_target;
        public ushort day;
        public byte posFan;
        public byte posDoor;
        public byte modeTemp;
        public byte modeRun;
        public byte modeCtrl;
        public byte modeDoor;
        public UInt32 alarmState;
        public UInt32 relayState;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)]
        public byte[] version;
        public UInt32 CPUID;
        public UInt32 FAID;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public byte[] QCCID;
        public byte NH3CO2;
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)]
        public byte[] rev;
        public UInt32 wYestoday;
        public UInt32 wToday;
        public UInt32 eYestoday;
        public UInt32 eToday;
    }
}
